package sk.stuba.fiit.ltasys.web.mvc.model.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "authorities")
public class AuthoritiesEntity {

	public static final transient String ROLE_ADMIN = "ROLE_ADMIN";
	public static final transient String ROLE_USER = "ROLE_USER";
	public static final transient String ROLE_GUEST = "ROLE_GUEST";
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private int id;
	
	private String authority;
	
	public AuthoritiesEntity() {}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getAuthority() {
		return authority;
	}

	public void setAuthority(String authority) {
		this.authority = authority;
	}
		
}
